import requests
import json

url = "http://ihrm-test.itheima.net/api/sys/login"

payload = json.dumps({
    "mobile": "13800000002",
    "password": "123456"
})
headers = {
    'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)